package com.aceitunaproject.server.exceptions.gamerules;

import java.util.List;

/**
 * @author Federico Bergstein
 *
 * Exception to return when a given action violates the game's rules
 *
 * Contains a list of the reasons why the action is invalid
 *
 */
public class IllegalActionException extends Exception {

	
	private static final long serialVersionUID = -4223744410877610008L;

	private List<EnumIllegalAction> reasons;

	/**
	 * @param reasons the reasons why the action is illegal
	 */
	public void setReasons(List<EnumIllegalAction> reasons) {
		this.reasons = reasons;
	}

	/**
	 * @return the reasons why the action is illegal
	 */
	public List<EnumIllegalAction> getReasons() {
		return reasons;
	}
	
	
	
	
}
